<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
        <span aria-hidden="true">&times;</span></button>
    <h4 class="modal-title">教育经历</h4>
</div>
<div class="modal-body">
    <table class="detailTable table table-hover table-striped table-bordered">
        <c:if test="${crudType==2}">
            <tr>
                <th></th>
                <th>原数据</th>
                <th>新数据</th>
            </tr>
        </c:if>
        <tr>
            <th>
                所学专业：
            </th>
            <td>${data.major}</td>
            <c:if test="${crudType==2}">
                <td>${newData.major}</td>
            </c:if>
        </tr>
        <tr>
            <th>
                毕业院校：
            </th>
            <td>${data.school}</td>
            <c:if test="${crudType==2}">
                <td>${newData.school}</td>
            </c:if>
        </tr>
        <tr>
            <th>
                年　　限：
            </th>
            <td>${data.learnTime}</td>
            <c:if test="${crudType==2}">
                <td>${newData.learnTime}</td>
            </c:if>
        </tr>

    </table>
</div>
<div class="modal-footer">
    <button id="btn_disagree_apply" onclick="disagreeApplyFun('${id}','${tableName}');" type="button" class="btn btn-danger"><span
            class="glyphicon glyphicon-remove"></span> 驳 回
    </button>
    <button id="btn_agree_apply" onclick="agreeApplyFun('${id}','${tableName}');" type="button" class="btn btn-success"><span
            class="glyphicon glyphicon-ok    "></span> 通 过
    </button>
</div>
<script>
    $.each($(".detailTable tr"), function (i, v) {
        var tds=  $(this).find("td");
        if (tds.length==2&&tds[0].innerText!=tds[1].innerText){
            $(this).find("td").css("color","red");
        }
    })
</script>